package cn.b.training.baby_education_training.service;

import cn.b.training.baby_education_training.entity.BabyNote;
import cn.b.training.baby_education_training.service.dto.BabyNoteDto;

import java.util.List;

/**
 * @program: baby_education_training
 * @description
 * @author: wuying
 * @create: 2022-12-04 12:56
 **/
public interface BabyNoteService {
    boolean addNote(BabyNoteDto babyNoteDto);
    /**
     * 修改日记信息
     * @param babyNoteDto
     */
    boolean updateNoteInfo(BabyNoteDto babyNoteDto);
    /**
     * 通过婴儿id查询日记信息
     * @param babyId id
     * @return
     */
    List<BabyNote> getNoteByBabyId(Long babyId);

    /**
     * 通过id查询日记信息
     * @param id id
     * @return
     */
    BabyNote getNoteById(Long id);

    Boolean deleteNoteById(Long id);

    List<BabyNote> getNoteByTitle(String title);
}
